SlkSPSiteMapping.GetMapping Method (Guid, out SlkSPSiteMapping)

Retrieves the SPSite-to-LearningStore mapping represented by a given SPSite GUID. If no such mapping exists, a new mapping object is created -- in that case, the caller should set the properties of the SlkSPSiteMapping object to their correct values and then call Update to store the mapping into the SharePoint configuration database.

Parent Type: SlkSPSiteMapping

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public static bool GetMapping (
Guid spSiteGuid,
out SlkSPSiteMapping mapping

)

Parameters

spSiteGuid

The GUID of the SPSite to retrieve a mapping for.

mapping

Set to the retrieved or newly-created mapping.

Return Value

true if an existing mapping was found; false if a new mapping is created. In the latter case, the new mapping is not stored in the SharePoint configuration database until Update is called.